package com.strive.search.annotation;

import com.strive.search.client.feign.fallback.AggregationServiceFallbackFactory;
import com.strive.search.client.feign.fallback.SearchServiceFallbackFactory;
import com.strive.search.client.impl.QueryServiceImpl;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @description:
 * @author: bingcun.chen
 * @Date: 2022/3/7 18:37
 * @Version 1.0
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@EnableFeignClients(basePackages = "com.strive")
@Import({SearchServiceFallbackFactory.class, AggregationServiceFallbackFactory.class,QueryServiceImpl.class})
public @interface EnableSearchClient {
}
